package com.shop2cn.iapi.payment.testcase;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.shop2cn.iapi.payment.parameter.ChangePayModeBean;
import com.shop2cn.iapi.payment.service.ChangePayModeCall;
import com.ymatou.iapi.dguser.parameter.UserCreateBean;
import com.ymatou.iapi.godmch.parameter.CreateCodeBean;
import com.ymatou.iapi.godmch.parameter.SetPayModeBean;
import com.ymatou.iapi.godmch.parameter.applyAgentBean;
import com.ymatou.iapi.godmch.parameter.applySupplierBean;
import com.ymatou.iapi.godmch.parameter.approveAgentBean;
import com.ymatou.iapi.godmch.parameter.createIndepMchBean;
import com.ymatou.iapi.godmch.parameter.createagentBean;
import com.ymatou.iapi.godmch.parameter.createmchBean;
import com.ymatou.iapi.godmch.parameter.setShareTypeBean;
import com.ymatou.iapi.godmch.service.CreateCodeCall;
import com.ymatou.iapi.godmch.service.applyAgentCall;
import com.ymatou.iapi.godmch.service.applySupplierCall;
import com.ymatou.iapi.godmch.service.createIndepMchCall;
import com.ymatou.iapi.godmch.service.createagentCall;
import com.ymatou.iapi.godmch.service.createmchCall;
import com.ymt.core.tool.FormatUtil;
import com.ymt.core.tool.Logger;
import com.ymt.utils.annotation.*;
import com.ymt.utils.tag.*;
import com.ymttest.business.service.DGUserCallService;
import com.ymttest.business.service.shenqi.GodmchManageCallService;
import com.ymttest.database.model.agent_type;
import com.ymttest.database.model.godmch.mch_config;
import com.ymttest.database.model.godmch.mch_configExample;
import com.ymttest.database.model.payment.Paychannel;
import com.ymttest.database.sqlwapper.PayGateWayWapper;
import com.ymttest.database.sqlwapper.godmch.mch_configWapper;
import com.ymttest.utils.TestDataManager;
/**
*渠道修改支付通道接口
*FreeMaker Template自动生成代码
*/

//STORE_CHANNEL(0, "店铺通道"),
//ASSIST_H5(1, "辅助HIPOPAYH5"),
//ASSIST_SHENGPAY(2, "辅助盛付通H5"),
//ASSIST_ALIPAY(3, "辅助支付宝H5"),
//ASSIST_SHENGPAY_MINIAPP(4, "辅助盛付通小程序支付"),
//ASSIST_MINIAPP(5, "辅助小程序支付"),
//SFT_HAIKUN(6,"盛付通海鲲");
@TestSuite
public class Ts_ChangePayMode{
	private static ChangePayModeBean changepaymodeBean;
	private static ChangePayModeCall changepaymodeCall;
	private static PayGateWayWapper PayGateWayWapper;
	public static mch_configWapper mchconfigWapper = new mch_configWapper();
	@BeforeClass
	public static void setUp() {
		Logger.createResultFile("渠道修改支付通道接口");
	}

	@Before
	public void caseUp() {
		changepaymodeBean=new ChangePayModeBean();
		changepaymodeCall=new ChangePayModeCall();
		PayGateWayWapper=new PayGateWayWapper();
	}

	@AfterClass
	public static void tearDown() {
		Logger.generateResult(changepaymodeCall.getOpurl());
	}

	@After
	public void caseDown() {
		Logger.end();
	}
	
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_ChangePayMode_001() {
		Logger.start(true,"渠道修改支付通道接口,公版渠道商小程序MchShareType1主通道6000-wxsqBuyer,H5辅助通道PayMode1飞界国际6001-h5sqBuyer,DomesticPayMode0关闭sft");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(1);
			bean.setPayMode(1);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(2, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道6000-wxsqBuyer");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(0,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6001-h5sqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(1,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(0,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
		
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	//MchShareType为1的时候PayMode只能是1
	@Ignore
	public void Tc_ChangePayMode_002() {
		Logger.start(true,"渠道修改支付通道接口,公版渠道商小程序MchShareType1主通道6000-wxsqBuyer,H5辅助通道PayMode2飞界电子6002-h5sqBuyer");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(1);
			bean.setPayMode(2);
			bean.setMchSideBuy(1);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(2, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道6000-wxsqBuyer");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(0,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6002-h5sqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道6002-wxsqBuyer");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(1,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(0,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	//MchShareType为1的时候PayMode只能是1
		@Ignore
	public void Tc_ChangePayMode_003() {
		Logger.start(true,"渠道修改支付通道接口,公版渠道商小程序MchShareType1主通道6000-wxsqBuyer,H5辅助通道PayMode3盛付通6011-h5sqBuyer");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(1);
			bean.setPayMode(3);
			bean.setMchSideBuy(1);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(2, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道6000-wxsqBuyer");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(0,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6011-h5sqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道6002-wxsqBuyer");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(1,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(0,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(2,p1.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	//MchShareType为1的时候PayMode只能是1
		@Ignore
	public void Tc_ChangePayMode_004() {
		Logger.start(true,"渠道修改支付通道接口,公版渠道商小程序MchShareType1主通道6000-wxsqBuyer,H5辅助通道PayMode4飞界贸易6003-h5sqBuyer");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(1);
			bean.setPayMode(4);
			bean.setMchSideBuy(1);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(2, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(0,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6003-h5sqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(1,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(0,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_ChangePayMode_005() {
		Logger.start(true,"渠道修改支付通道接口,公版渠道商H5MchShareType2主通道PayMode1飞界国际6001-h5sqBuyer");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(2);
			bean.setPayMode(1);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(2, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道6000-wxsqBuyer");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			//ChannelType5 公版小程序辅助
			Logger.verifyEquals(5,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(0,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6001-h5sqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道6001-h5sqBuyer");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(0,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_ChangePayMode_006() {
		Logger.start(true,"渠道修改支付通道接口,公版渠道商H5MchShareType2主通道PayMode2飞界电子6002-h5sqBuyer");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(2);
			bean.setPayMode(2);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(3, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道6000-wxsqBuyer");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(5,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(0,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6002-h5sqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(0,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	@Ignore
	//公共H5不能使用盛付通
	public void Tc_ChangePayMode_007() {
		Logger.start(true,"渠道修改支付通道接口,公版渠道商H5MchShareType2主通道PayMode3盛付通6011-h5sqBuyer");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(2);
			bean.setPayMode(3);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(2, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道6000-wxsqBuyer");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(5,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(0,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6011-h5sqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
//			Logger.verifyEquals(0,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(0,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(2,p1.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_ChangePayMode_008() {
		Logger.start(true,"渠道修改支付通道接口,公版渠道商H5MchShareType2主通道PayMode4飞界贸易6003-h5sqBuyer");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(2);
			bean.setPayMode(4);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(2, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道6000-wxsqBuyer");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(5,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(0,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6003-h5sqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(0,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_ChangePayMode_009() {
		Logger.start(true,"渠道修改支付通道接口,公版渠道商H5MchShareType2主通道PayMode1飞界国际6001-h5sqBuyer,开启支付宝辅助通道aliPayMode1,6006-h5sqBuyer");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(1);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(2);
			bean.setPayMode(1);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(3, db.size(), "验证渠道总数");
			List<Paychannel> ph5 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, ph5.size(), "验证渠道6000-wxsqBuyer");
			//0 正常  1删除
			Logger.verifyEquals(0,ph5.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,ph5.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,ph5.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),ph5.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			//ChannelType5 公版小程序辅助
			Logger.verifyEquals(5,ph5.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(0,ph5.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,ph5.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6001-h5sqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(0,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
			
			//----------alipay
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6006-h5sqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(1,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(3,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(0,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_ChangePayMode_010() {
		Logger.start(true,"渠道修改支付通道接口,公版渠道商H5MchShareType2主通道PayMode1飞界国际6001-h5sqBuyer,开启双店通道dualMode1盛付通6011-h5sqBuyer");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(1);
			bean.setDualMode(1);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(2);
			bean.setPayMode(1);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(4, db.size(), "验证渠道总数");
			
			List<Paychannel> ph5 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, ph5.size(), "验证渠道6000-wxsqBuyer");
			//0 正常  1删除
			Logger.verifyEquals(0,ph5.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,ph5.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,ph5.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),ph5.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			//ChannelType5 公版小程序辅助
			Logger.verifyEquals(5,ph5.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(0,ph5.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,ph5.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6001-h5sqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(0,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
			
			//----------alipay
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6006-h5sqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(1,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(3,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(0,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p2 = db.stream().filter(d->d.getAppName().equals("6011-h5sqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p2.size(), "验证渠道");
			Logger.verifyEquals(0,p2.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p2.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p2.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p2.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(2,p2.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(0,p2.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(2,p2.get(0).getCompany(), "验证Company");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_ChangePayMode_011() {
		Logger.start(true,"渠道修改支付通道接口,公版渠道商H5MchShareType2主通道PayMode2飞界电子6002-h5sqBuyer,开启双店通道dualMode1盛付通6011-h5sqBuyer");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(1);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(2);
			bean.setPayMode(2);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(3, db.size(), "验证渠道总数");
			List<Paychannel> ph5 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, ph5.size(), "验证渠道6000-wxsqBuyer");
			//0 正常  1删除
			Logger.verifyEquals(0,ph5.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,ph5.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,ph5.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),ph5.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			//ChannelType5 公版小程序辅助
			Logger.verifyEquals(5,ph5.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(0,ph5.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,ph5.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6002-h5sqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(0,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
			
			
			//------------------------------------------辅助通道
			List<Paychannel> p2 = db.stream().filter(d->d.getAppName().equals("6011-h5sqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p2.size(), "验证渠道");
			Logger.verifyEquals(0,p2.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p2.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p2.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p2.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(2,p2.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(0,p2.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(2,p2.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_ChangePayMode_012() {
		Logger.start(true,"渠道修改支付通道接口,公版渠道商H5MchShareType2主通道PayMode3盛付通6011-h5sqBuyer,开启双店通道dualMode1飞界电子6002-h5sqBuyer");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(1);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(2);
			bean.setPayMode(3);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(3, db.size(), "验证渠道总数");
			
			List<Paychannel> ph5 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, ph5.size(), "验证渠道6000-wxsqBuyer");
			//0 正常  1删除
			Logger.verifyEquals(0,ph5.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,ph5.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,ph5.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),ph5.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			//ChannelType5 公版小程序辅助
			Logger.verifyEquals(5,ph5.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(0,ph5.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,ph5.get(0).getCompany(), "验证Company");
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6011-h5sqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
//			Logger.verifyEquals(6,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(0,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(2,p1.get(0).getCompany(), "验证Company");
			
			
			
			//------------------------------------------辅助通道
			List<Paychannel> p2 = db.stream().filter(d->d.getAppName().equals("6002-h5sqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p2.size(), "验证渠道");
			Logger.verifyEquals(0,p2.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p2.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p2.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p2.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
//			Logger.verifyEquals(0,p2.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(0,p2.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(1,p2.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_ChangePayMode_013() {
		Logger.start(true,"渠道修改支付通道接口,公版渠道商H5MchShareType2主通道PayMode4飞界贸易6003-h5sqBuyer,开启双店通道dualMode1盛付通6011-h5sqBuyer");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(1);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(2);
			bean.setPayMode(4);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(3, db.size(), "验证渠道总数");
			
			List<Paychannel> ph5 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, ph5.size(), "验证渠道6000-wxsqBuyer");
			//0 正常  1删除
			Logger.verifyEquals(0,ph5.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,ph5.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,ph5.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),ph5.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			//ChannelType5 公版小程序辅助
			Logger.verifyEquals(5,ph5.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(0,ph5.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,ph5.get(0).getCompany(), "验证Company");
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6003-h5sqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(0,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
			
			
			//------------------------------------------辅助通道
			List<Paychannel> p2 = db.stream().filter(d->d.getAppName().equals("6011-h5sqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p2.size(), "验证渠道");
			Logger.verifyEquals(0,p2.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p2.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p2.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p2.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(2,p2.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(0,p2.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(2,p2.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_ChangePayMode_014() {
		Logger.start(true,"渠道修改支付通道接口,独立版渠道商小程序MchShareType3主通道PayMode1,6000-channelid,辅助通道6001-channelid");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(3);
			bean.setPayMode(1);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(2, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6001-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(1,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(1,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	@Ignore
	//独立版MchShareType3和4 paymode只能是1或者5
	public void Tc_ChangePayMode_015() {
		Logger.start(true,"渠道修改支付通道接口,独立版渠道商小程序MchShareType3主通道PayMode2,6000-channelid,辅助通道6001-channelid");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(3);
			bean.setPayMode(2);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(2, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6001-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(1,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(1,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	@Ignore
	//独立版MchShareType3和4 paymode只能是1或者5
	public void Tc_ChangePayMode_016() {
		Logger.start(true,"渠道修改支付通道接口,独立版渠道商小程序MchShareType3主通道PayMode3,6010-channelid,辅助通道6011-channelid");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(3);
			bean.setPayMode(3);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(2, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6010-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(2,p0.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6011-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(1,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(1,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(2,p1.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	@Ignore
	//独立版MchShareType3和4 paymode只能是1或者5
	public void Tc_ChangePayMode_017() {
		Logger.start(true,"渠道修改支付通道接口,独立版渠道商小程序MchShareType3主通道PayMode4,6000-channelid,辅助通道6001-channelid");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(3);
			bean.setPayMode(4);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(2, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6001-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(1,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(1,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	@Ignore
	//继承版MchShareType5 被干掉了
	public void Tc_ChangePayMode_018() {
		Logger.start(true,"渠道修改支付通道接口,独立版渠道商小程序继承版MchShareType5主通道PayMode1,6000-channelid,辅助通道6001-channelid");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(5);
			bean.setPayMode(1);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(2, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6001-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(1,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(1,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	@Ignore
	//独立版MchShareType3和4 paymode只能是1或者5
	public void Tc_ChangePayMode_019() {
		Logger.start(true,"渠道修改支付通道接口,独立版渠道商小程序继承版MchShareType5主通道PayMode2,6000-channelid,辅助通道6001-channelid");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(5);
			bean.setPayMode(2);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(2, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6001-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(1,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(1,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	@Ignore
	//独立版MchShareType3和4 paymode只能是1或者5
	public void Tc_ChangePayMode_020() {
		Logger.start(true,"渠道修改支付通道接口,独立版渠道商小程序继承版MchShareType5主通道PayMode3,6010-channelid,辅助通道6011-channelid");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(5);
			bean.setPayMode(3);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(2, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6010-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(2,p0.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6011-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(1,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(1,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(2,p1.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	@Ignore
	//独立版MchShareType3和4 paymode只能是1或者5
	public void Tc_ChangePayMode_021() {
		Logger.start(true,"渠道修改支付通道接口,独立版渠道商小程序继承版MchShareType5主通道PayMode4,6000-channelid,辅助通道6001-channelid");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(5);
			bean.setPayMode(4);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(2, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6001-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(1,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(1,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	@Ignore
	public void Tc_ChangePayMode_022() {
		Logger.start(true,"渠道修改支付通道接口,独立版H5渠道商H5MchShareType4主通道PayMode1,6001-channelid");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(4);
			bean.setPayMode(1);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(1, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6001-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(1,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	@Ignore
	//独立版MchShareType3和4 paymode只能是1或者5
	public void Tc_ChangePayMode_023() {
		Logger.start(true,"渠道修改支付通道接口,独立版H5渠道商H5MchShareType4主通道PayMode2,6001-channelid");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(4);
			bean.setPayMode(2);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(1, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6001-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(1,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	@Ignore
	//独立版MchShareType3和4 paymode只能是1或者5
	public void Tc_ChangePayMode_024() {
		Logger.start(true,"渠道修改支付通道接口,独立版H5渠道商H5MchShareType4主通道PayMode3盛付通6011-channelid");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(4);
			bean.setPayMode(3);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(1, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6011-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(1,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(2,p0.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	@Ignore
	//独立版MchShareType3和4 paymode只能是1或者5
	public void Tc_ChangePayMode_025() {
		Logger.start(true,"渠道修改支付通道接口,独立版H5渠道商H5MchShareType4主通道PayMode4,6001-channelid");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(4);
			bean.setPayMode(4);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(1, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6001-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(1,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	@Ignore
	//独立版不能使用支付宝
	public void Tc_ChangePayMode_026() {
		Logger.start(true,"渠道修改支付通道接口,独立版H5渠道商H5MchShareType4主通道PayMode5,6001-channelid,开启支付宝辅助通道aliPayMode1,6006-channelid");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(1);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(4);
			bean.setPayMode(5);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(2, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6001-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(1,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6006-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(3,p1.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p1.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_ChangePayMode_027() {
		Logger.start(true,"渠道修改支付通道接口,独立版H5渠道商H5MchShareType4主通道PayMode5,6001-channelid开启双店通道dualMode1,6011-channelid");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(1);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(4);
			bean.setPayMode(5);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(2, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6001-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(1,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			
			
			
			List<Paychannel> p2 = db.stream().filter(d->d.getAppName().equals("6011-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p2.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p2.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p2.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(1,p2.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p2.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(2,p2.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p2.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(2,p2.get(0).getCompany(), "验证Company");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	@Ignore
	//独立版MchShareType3和4 paymode只能是1或者5
	public void Tc_ChangePayMode_028() {
		Logger.start(true,"渠道修改支付通道接口,独立版H5渠道商H5MchShareType4主通道PayMode2,6001-channelid开启双店通道dualMode1,6011-channelid");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(1);
			bean.setDualMode(1);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(4);
			bean.setPayMode(2);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(3, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6001-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(1,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6006-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(3,p1.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p1.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
			
			List<Paychannel> p2 = db.stream().filter(d->d.getAppName().equals("6011-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p2.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p2.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p2.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(1,p2.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p2.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(2,p2.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p2.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(2,p2.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	@Ignore
	//独立版MchShareType3和4 paymode只能是1或者5
	public void Tc_ChangePayMode_029() {
		Logger.start(true,"渠道修改支付通道接口,独立版H5渠道商H5MchShareType4主通道PayMode3盛付通6011-channelid开启双店通道dualMode1,6002-channelid");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(1);
			bean.setDualMode(1);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(4);
			bean.setPayMode(3);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(3, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6011-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(1,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(2,p0.get(0).getCompany(), "验证Company");
			
			
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6006-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(3,p1.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p1.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
			
			List<Paychannel> p2 = db.stream().filter(d->d.getAppName().equals("6002-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p2.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p2.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p2.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(1,p2.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p2.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(2,p2.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p2.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p2.get(0).getCompany(), "验证Company");		
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	@Ignore
	//独立版MchShareType3和4 paymode只能是1或者5
	public void Tc_ChangePayMode_030() {
		Logger.start(true,"渠道修改支付通道接口,独立版H5渠道商H5MchShareType4主通道PayMode4,6001-channelid开启双店通道dualMode1,6011-channelid");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(1);
			bean.setDualMode(1);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(4);
			bean.setPayMode(4);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(3, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6001-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(1,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6006-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(3,p1.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p1.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
			
			List<Paychannel> p2 = db.stream().filter(d->d.getAppName().equals("6011-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p2.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p2.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p2.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(1,p2.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p2.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(2,p2.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p2.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(2,p2.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_ChangePayMode_031() {
		Logger.start(true,"代理修改支付通道接口,公版渠道商小程序MchShareType1主通道6000-wxsqBuyer,H5辅助通道PayMode1飞界国际6001-h5sqBuyer");
		try {
				Integer mchId_channl_master = GodmchManageCallService.CreateSellerMch();
				Integer mchId_channl=getAgentMchId(mchId_channl_master);
	            setShareTypeBean bean=new setShareTypeBean();
				bean.setAliPayMode(0);
				bean.setDualMode(0);
				bean.setMchId(mchId_channl);
				bean.setMchShareType(1);
				bean.setPayMode(1);
				bean.setMchSideBuy(1);
				bean.setDomesticPayMode(0);
				GodmchManageCallService.setShareTypeV2Call(bean);
				changepaymodeBean.setUserId(mchId_channl);
				changepaymodeCall.setData(changepaymodeBean);
				changepaymodeCall.callService();		
				Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
				List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
				Logger.comment(FormatUtil.beanToGSONString(db));
				Logger.verifyEquals(2, db.size(), "验证渠道总数");
				List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
				Logger.verifyEquals(1, p0.size(), "验证渠道6000-wxsqBuyer");
				//0 正常  1删除
				Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
				//是否代理商0否 1是
				Logger.verifyEquals(1,p0.get(0).getAgentType(), "验证AgentType");
				//0小程序 1h5
				Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
				Logger.verifyEquals(mchId_channl_master.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
				//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
				Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
				//0公版 1独立
				Logger.verifyEquals(0,p0.get(0).getStoreType(), "验证StoreType");
				//1hipopay 2sft
				Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
				
				//------------------------------------------辅助通道
				List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6001-h5sqBuyer")).collect(Collectors.toList());
				Logger.verifyEquals(1, p1.size(), "验证渠道");
				Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
				Logger.verifyEquals(1,p1.get(0).getAgentType(), "验证AgentType");
				Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
				Logger.verifyEquals(mchId_channl_master.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
				//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
				Logger.verifyEquals(1,p1.get(0).getChannelType(), "验证ChannelType");
				Logger.verifyEquals(0,p1.get(0).getStoreType(), "验证StoreType");
				Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	@Ignore
	//公共版小程序（海外版）不能使用飞界国际电子商务
	public void Tc_ChangePayMode_032() {
		Logger.start(true,"代理修改支付通道接口,公版渠道商小程序MchShareType1主通道6000-wxsqBuyer,H5辅助通道PayMode2飞界电子6002-h5sqBuyer");
		try {
			Integer mchId_channl_master = GodmchManageCallService.CreateSellerMch();
			Integer mchId_channl=getAgentMchId(mchId_channl_master);
            setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(1);
			bean.setPayMode(2);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(2, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道6000-wxsqBuyer");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(1,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl_master.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(0,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6002-h5sqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(1,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl_master.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(1,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(0,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	@Ignore
	public void Tc_ChangePayMode_033() {
		Logger.start(true,"代理修改支付通道接口,公版渠道商小程序MchShareType1主通道6000-wxsqBuyer,H5辅助通道PayMode3盛付通6011-h5sqBuyer");
		try {
			//纯代理不能切盛付通
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	@Ignore
	//公共版小程序（海外版）不能使用飞界国际电子商务
	public void Tc_ChangePayMode_034() {
		Logger.start(true,"代理修改支付通道接口,公版渠道商小程序MchShareType1主通道6000-wxsqBuyer,H5辅助通道PayMode4飞界贸易6003-h5sqBuyer");
		try {
			Integer mchId_channl_master = GodmchManageCallService.CreateSellerMch();
			Integer mchId_channl=getAgentMchId(mchId_channl_master);
            setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(1);
			bean.setPayMode(4);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(2, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道6000-wxsqBuyer");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(1,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl_master.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(0,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6003-h5sqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(1,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl_master.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(1,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(0,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_ChangePayMode_035() {
		Logger.start(true,"代理修改支付通道接口,公版渠道商H5MchShareType2主通道PayMode1飞界国际6001-h5sqBuyer");
		try {
			Integer mchId_channl_master = GodmchManageCallService.CreateSellerMch();
			Integer mchId_channl=getAgentMchId(mchId_channl_master);
            setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(2);
			bean.setPayMode(1);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(2, db.size(), "验证渠道总数");
			List<Paychannel> ph5 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, ph5.size(), "验证渠道6000-wxsqBuyer");
			//0 正常  1删除
			Logger.verifyEquals(0,ph5.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(1,ph5.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,ph5.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),ph5.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			//ChannelType5 公版小程序辅助
			Logger.verifyEquals(5,ph5.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(0,ph5.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,ph5.get(0).getCompany(), "验证Company");
			
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6001-h5sqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(1,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(1,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl_master.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(0,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_ChangePayMode_036() {
		Logger.start(true,"代理修改支付通道接口,公版渠道商H5MchShareType2主通道PayMode2飞界电子6002-h5sqBuyer");
		try {
			Integer mchId_channl_master = GodmchManageCallService.CreateSellerMch();
			Integer mchId_channl=getAgentMchId(mchId_channl_master);
            setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(2);
			bean.setPayMode(2);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(2, db.size(), "验证渠道总数");
			
			List<Paychannel> ph5 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, ph5.size(), "验证渠道6000-wxsqBuyer");
			//0 正常  1删除
			Logger.verifyEquals(0,ph5.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(1,ph5.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,ph5.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),ph5.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			//ChannelType5 公版小程序辅助
			Logger.verifyEquals(5,ph5.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(0,ph5.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,ph5.get(0).getCompany(), "验证Company");
			
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6002-h5sqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(1,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(1,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl_master.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(0,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	@Ignore
	//纯代理不能切sft
	public void Tc_ChangePayMode_037() {
		Logger.start(true,"代理修改支付通道接口,公版渠道商H5MchShareType2主通道PayMode3盛付通6011-h5sqBuyer");
		try {
			org.junit.Assert.fail();
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();			
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_ChangePayMode_038() {
		Logger.start(true,"代理修改支付通道接口,公版渠道商H5MchShareType2主通道PayMode4飞界贸易6003-h5sqBuyer");
		try {
			Integer mchId_channl_master = GodmchManageCallService.CreateSellerMch();
			Integer mchId_channl=getAgentMchId(mchId_channl_master);
            setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(2);
			bean.setPayMode(4);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(2, db.size(), "验证渠道总数");
			
			List<Paychannel> ph5 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, ph5.size(), "验证渠道6000-wxsqBuyer");
			//0 正常  1删除
			Logger.verifyEquals(0,ph5.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(1,ph5.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,ph5.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),ph5.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			//ChannelType5 公版小程序辅助
			Logger.verifyEquals(5,ph5.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(0,ph5.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,ph5.get(0).getCompany(), "验证Company");
			
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6003-h5sqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(1,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(1,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl_master.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(0,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_ChangePayMode_039() {
		Logger.start(true,"代理修改支付通道接口,公版渠道商H5MchShareType2主通道PayMode1飞界国际6001-h5sqBuyer,开启支付宝辅助通道aliPayMode1,6006-h5sqBuyer");
		try {
			Integer mchId_channl_master = GodmchManageCallService.CreateSellerMch();
			Integer mchId_channl=getAgentMchId(mchId_channl_master);
            setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(1);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(2);
			bean.setPayMode(1);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(3, db.size(), "验证渠道总数");
			
			List<Paychannel> ph5 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, ph5.size(), "验证渠道6000-wxsqBuyer");
			//0 正常  1删除
			Logger.verifyEquals(0,ph5.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(1,ph5.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,ph5.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),ph5.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			//ChannelType5 公版小程序辅助
			Logger.verifyEquals(5,ph5.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(0,ph5.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,ph5.get(0).getCompany(), "验证Company");
			
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6001-h5sqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(1,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(1,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl_master.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(0,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6006-h5sqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(1,p1.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl_master.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(3,p1.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(0,p1.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	@Ignore
	//继承版MchShareType5 被干掉了
	public void Tc_ChangePayMode_040() {
		Logger.start(true,"代理修改支付通道接口,独立版渠道商小程序继承版MchShareType5主通道PayMode1,6000-wxsqBuyer,辅助通道6001-channelid");
		try {
			Integer mchId_channl_master = GodmchManageCallService.CreateSellerMch();
			Integer mchId_channl=getAgentMchId(mchId_channl_master);
            setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(5);
			bean.setPayMode(1);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(2, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(1,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl_master.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6001-"+mchId_channl_master)).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(1,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl_master.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(1,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(1,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	@Ignore
	//继承版MchShareType5 被干掉了
	public void Tc_ChangePayMode_041() {
		Logger.start(true,"代理修改支付通道接口,独立版渠道商小程序继承版MchShareType5主通道PayMode2,6000-wxsqBuyer,辅助通道6001-channelid");
		try {
			Integer mchId_channl_master = GodmchManageCallService.CreateSellerMch();
			Integer mchId_channl=getAgentMchId(mchId_channl_master);
			Logger.comment("mchId_channl_master"+mchId_channl_master+"======mchId_channl:"+mchId_channl);
            setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(5);
			bean.setPayMode(2);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(2, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道6000-wxsqBuyer");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(1,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl_master.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6001-"+mchId_channl_master)).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(1,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl_master.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(1,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(1,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	@Ignore
	//纯代理不能切sft
	public void Tc_ChangePayMode_042() {
		Logger.start(true,"代理修改支付通道接口,独立版渠道商小程序继承版MchShareType5主通道PayMode3,6010-channelid,辅助通道6011-channelid");
		try {
			org.junit.Assert.fail();
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();			
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	@Ignore
	//继承版MchShareType5 被干掉了
	public void Tc_ChangePayMode_043() {
		Logger.start(true,"代理修改支付通道接口,独立版渠道商小程序继承版MchShareType5主通道PayMode4,6000-wxsqBuyer,辅助通道6001-channelid");
		try {
			Integer mchId_channl_master = GodmchManageCallService.CreateSellerMch();
			Integer mchId_channl=getAgentMchId(mchId_channl_master);
            setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(5);
			bean.setPayMode(4);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(2, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道6000-wxsqBuyer");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(1,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl_master.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6001-"+mchId_channl_master)).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(1,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl_master.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(1,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(1,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	@Ignore
	//独立H5只能用独立支付paymode5
	public void Tc_ChangePayMode_044() {
		Logger.start(true,"代理修改支付通道接口,独立版H5渠道商H5MchShareType4主通道PayMode1,6001-channelid");
		try {
			Integer mchId_channl_master = GodmchManageCallService.CreateSellerMch();
			Integer mchId_channl=getAgentMchId(mchId_channl_master);
            setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(4);
			bean.setPayMode(1);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(1, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6001-"+mchId_channl_master)).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道6000-wxsqBuyer");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(1,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(1,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl_master.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	@Ignore
	//独立H5只能用独立支付paymode5
	public void Tc_ChangePayMode_045() {
		Logger.start(true,"代理修改支付通道接口,独立版H5渠道商H5MchShareType4主通道PayMode2,6001-channelid");
		try {
			Integer mchId_channl_master = GodmchManageCallService.CreateSellerMch();
			Integer mchId_channl=getAgentMchId(mchId_channl_master);
            setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(4);
			bean.setPayMode(2);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(1, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6001-"+mchId_channl_master)).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道6000-wxsqBuyer");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(1,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(1,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl_master.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	@Ignore
	//纯代理没有盛付通
	public void Tc_ChangePayMode_046() {
		Logger.start(true,"代理修改支付通道接口,独立版H5渠道商H5MchShareType4主通道PayMode3盛付通6011-channelid");
		try {
			org.junit.Assert.fail();
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();			
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	@Ignore
	//独立H5只能用独立支付paymode5
	public void Tc_ChangePayMode_047() {
		Logger.start(true,"代理修改支付通道接口,独立版H5渠道商H5MchShareType4主通道PayMode4,6001-channelid");
		try {
			Integer mchId_channl_master = GodmchManageCallService.CreateSellerMch();
			Integer mchId_channl=getAgentMchId(mchId_channl_master);
            setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(4);
			bean.setPayMode(4);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(1, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6001-"+mchId_channl_master)).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道6000-wxsqBuyer");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(1,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(1,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl_master.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");	
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	@Ignore
	//独立H5只能用独立支付paymode5
	public void Tc_ChangePayMode_048() {
		Logger.start(true,"代理修改支付通道接口,独立版H5渠道商H5MchShareType4主通道PayMode1,6001-channelid,开启支付宝辅助通道aliPayMode1,6006-channelid");
		try {
			Integer mchId_channl_master = GodmchManageCallService.CreateSellerMch();
			Integer mchId_channl=getAgentMchId(mchId_channl_master);
            setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(1);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(4);
			bean.setPayMode(1);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(2, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6001-"+mchId_channl_master)).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道6000-wxsqBuyer");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(1,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(1,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl_master.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");		
			
			//---------alipay
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6006-"+mchId_channl_master)).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(1,p1.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(1,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl_master.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(3,p1.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p1.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");		
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_ChangePayMode_049() {
		Logger.start(true,"渠道商独立商家支付渠道为自己的rootSellerid-验证channelid为rootSellerid");
		try {
			createIndepMchBean createIndepMchBean=GodmchManageCallService.InitCreateIndepMchBean();
            Integer mchId_channl_master=GodmchManageCallService.CreateIndepMchCall(createIndepMchBean).getmchId();
            changepaymodeBean.setUserId(mchId_channl_master);
            changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();			
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl_master);
			Logger.comment(FormatUtil.beanToGSONString(db));
			//默认开通sft
			Logger.verifyEquals(3, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-"+mchId_channl_master)).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl_master.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6001-"+mchId_channl_master)).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl_master.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(1,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(1,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
			
			List<Paychannel> p3 = db.stream().filter(d->d.getAppName().equals("6010-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p3.size(), "验证渠道");
			Logger.verifyEquals(0,p3.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p3.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(0,p3.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl_master.toString(),p3.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(6,p3.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(1,p3.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(2,p3.get(0).getCompany(), "验证Company");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_ChangePayMode_050() {
		Logger.start(true,"代理商独立商家支付渠道为root上级的的rootSellerid-验证channelid为rootSellerid");
		try {
			//mch_info.indepMchFlg=3 且是type是独立版跟着自己走
			createIndepMchBean createIndepMchBean=GodmchManageCallService.InitCreateIndepMchBean();
            Integer mchId_channl_master=GodmchManageCallService.CreateIndepMchCall(createIndepMchBean).getmchId();
            Integer  mchId_channl= GodmchManageCallService.applyAndapproveAgent(mchId_channl_master).getAgentId();
            changepaymodeBean.setUserId(mchId_channl);
            changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();			
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl_master);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(3, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-"+mchId_channl_master)).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(1,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl_master.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6001-"+mchId_channl_master)).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(1,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl_master.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(1,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(1,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
			List<Paychannel> p3 = db.stream().filter(d->d.getAppName().equals("6010-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p3.size(), "验证渠道");
			Logger.verifyEquals(0,p3.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(1,p3.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(0,p3.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl_master.toString(),p3.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(6,p3.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(1,p3.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(2,p3.get(0).getCompany(), "验证Company");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_ChangePayMode_051() {
		Logger.start(true,"渠道商平台商家支付渠道为自己的MchId-验证channelid为自己的MchId");
		try {
			//创建渠道
            Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
            //代理
            Integer mchId_Agent=GodmchManageCallService.createAgent(mchId_channl);
            setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_Agent);
			bean.setMchShareType(3);
			bean.setPayMode(1);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
            
            changepaymodeBean.setUserId(mchId_Agent);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();			
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_Agent);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(2, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_Agent.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_ChangePayMode_052() {
		Logger.start(true,"代理商平台商家支付渠道为root上级的MchId-验证channelid为最早绑定的渠道商id");
		try {
			//创建渠道
            Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
            Integer mchId_channl2 = GodmchManageCallService.CreateSellerMch();
            //代理
            Integer mchId_Agent=GodmchManageCallService.createAgent(mchId_channl);
            //代理2
            List<createmchBean> createmchList=GodmchManageCallService.InitcreatemchBeanForAgent(mchId_channl2, mchId_Agent);
    		GodmchManageCallService.createmchCallForAgent(createmchList.toArray(new
    				createmchBean[createmchList.size()]));
    		
            setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_Agent);
			bean.setMchShareType(3);
			bean.setPayMode(1);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
            
            changepaymodeBean.setUserId(mchId_Agent);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();			
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_Agent);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(2, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_Agent.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_ChangePayMode_053() {
		Logger.start(true,"代理商平台商家支付渠道为root上级的MchId-验证channelid为最早绑定的渠道商id-最早的解绑了则是当前已绑定的最早的");
		try {
			//创建渠道
            Integer mchId_channl2 = GodmchManageCallService.CreateSellerMch();
            Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
            //代理
            Integer mchId_Agent=GodmchManageCallService.createAgent(mchId_channl2);
            //代理2
            List<createmchBean> createmchList=GodmchManageCallService.InitcreatemchBeanForAgent(mchId_channl, mchId_Agent);
    		GodmchManageCallService.createmchCallForAgent(createmchList.toArray(new
    				createmchBean[createmchList.size()]));
    		GodmchManageCallService.InitremovemchForAgent(mchId_channl2, mchId_Agent);
            setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_Agent);
			bean.setMchShareType(3);
			bean.setPayMode(1);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
            
            changepaymodeBean.setUserId(mchId_Agent);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();			
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_Agent);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(2, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_Agent.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_ChangePayMode_054() {
		Logger.start(true,"渠道修改分享类型-从独立h5到公版,代理也要切换");
		try {

			createmchBean bean=new createmchBean();
	        createmchCall call=new createmchCall();
	        Integer userId1 = GodmchManageCallService.UserCreateAgent();
	        // 创建渠道
	        bean = GodmchManageCallService.InitcreatemchBeanForChannel(userId1);

	        GodmchManageCallService.createmchCallForChannel(bean);
	        // 设置vip
	        GodmchManageCallService.SetVip(userId1);

	        // 渠道商邀请码
	        CreateCodeBean createCodeBean = GodmchManageCallService.InitcreateCodeBeanForAgent(userId1);
	        CreateCodeCall createcall = GodmchManageCallService.createCodeCall(createCodeBean);
	        // 代理1
	        bean = new createmchBean();
	        Integer userId_agent1 = GodmchManageCallService.UserCreateAgent();
	        bean.setMchId(userId_agent1);
	        bean.setCountry("CHN");
	        bean.setCode(createcall.getCode());
	        bean.setNickName("代理昵称_" + TestDataManager.getPhoneNum());
	        call.setData(bean);
	        call.callService();
	        // 代理1邀请码
	        createCodeBean = GodmchManageCallService.InitcreateCodeBeanForAgent(userId_agent1);
	        createcall = GodmchManageCallService.createCodeCall(createCodeBean);

	        // 代理2
	        Integer userId_agent2 = GodmchManageCallService.UserCreateAgent();
	        bean.setMchId(userId_agent2);
	        bean.setCountry("CHN");
	        bean.setCode(createcall.getCode());
	        bean.setNickName("代理昵称_" + TestDataManager.getPhoneNum());
	        call.setData(bean);
	        call.callService();
	        
            setShareTypeBean sbean=new setShareTypeBean();
            sbean.setAliPayMode(0);
            sbean.setDualMode(0);
            sbean.setMchId(userId1);
            sbean.setMchShareType(4);
            sbean.setPayMode(1);
            sbean.setMchSideBuy(1);
            sbean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(sbean);
            
			sbean.setMchShareType(2);
			GodmchManageCallService.setShareTypeV2Call(sbean);
            changepaymodeBean.setUserId(userId1);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();			
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(userId1);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(2, db.size(), "验证渠道总数");//增加了6000公版小程序辅助渠道 场景在上面校验
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6001-h5sqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(1,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(userId1.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(0,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			
			List<Paychannel> db2 = PayGateWayWapper.selectPaychannel(userId_agent1);
			Logger.debug(FormatUtil.beanToGSONString(db2));
			Logger.verifyEquals(2, db.size(), "验证渠道总数");
			List<Paychannel> p1 = db2.stream().filter(d->d.getAppName().equals("6002-h5sqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(1,p1.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(userId1.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p1.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(0,p1.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
			List<Paychannel> db3 = PayGateWayWapper.selectPaychannel(userId_agent2);
			Logger.debug(FormatUtil.beanToGSONString(db3));
			Logger.verifyEquals(3, db3.size(), "验证渠道总数");
			List<Paychannel> p2 = db3.stream().filter(d->d.getAppName().equals("6002-h5sqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p2.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p2.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(1,p2.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(1,p2.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(userId1.toString(),p2.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p2.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(0,p2.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p2.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	//公版只能使用飞界国际6000
	public void Tc_ChangePayMode_055() {
		Logger.start(true,"渠道修改支付通道接口,公版渠道商AppMchShareType1主通道PayMode1飞界电子6000-h5sqBuyer,开启双店通道dualMode1盛付通6010-wxsqBuyer");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(1);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(1);
			bean.setPayMode(1);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(3, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道6000-wxsqBuyer");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(0,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6001-h5sqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(1,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(0,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
			//------------------------------------------双通道
			List<Paychannel> p3 = db.stream().filter(d->d.getAppName().equals("6010-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p3.size(), "验证渠道6010-wxsqBuyer");
			Logger.verifyEquals(0,p3.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p3.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(0,p3.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			//新增4 app 双通道 盛付通
			Logger.verifyEquals(4,p3.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(0,p3.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(2,p3.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	@Ignore
	//独立app不能使用飞界国际电子商务
	public void Tc_ChangePayMode_056() {
		Logger.start(true,"独立App修改支付通道接口,公版渠道商AppMchShareType3主通道PayMode2飞界电子6000-h5sqBuyer,开启双店通道dualMode1盛付通6010-wxsqBuyer");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(1);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(3);
			bean.setPayMode(2);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(3, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道6000-wxsqBuyer");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6001-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(1,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(1,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
			//------------------------------------------双通道
			List<Paychannel> p3 = db.stream().filter(d->d.getAppName().equals("6010-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p3.size(), "验证渠道6010-wxsqBuyer");
			Logger.verifyEquals(0,p3.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p3.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(0,p3.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			//新增4 app 双通道 盛付通
			Logger.verifyEquals(4,p3.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(1,p3.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(2,p3.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_ChangePayMode_057() {
		Logger.start(true,"渠道修改支付通道接口,公版渠道商H5MchShareType2主通道PayMode1飞界国际6001-h5sqBuyer,DomesticPayMode1开通国内盛付通");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(2);
			bean.setPayMode(1);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(1);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(3, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道6000-wxsqBuyer");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			//ChannelType5 公版小程序辅助
			Logger.verifyEquals(5,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(0,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6001-h5sqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道6001-h5sqBuyer");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(0,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
			
			List<Paychannel> p2 = db.stream().filter(d->d.getAppName().equals("6011-h5sqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p2.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p2.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p2.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(1,p2.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p2.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			//ChannelType5 公版小程序辅助
			Logger.verifyEquals(6,p2.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(0,p2.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(2,p2.get(0).getCompany(), "验证Company");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_ChangePayMode_058() {
		Logger.start(true,"渠道修改支付通道接口,公版渠道商H5MchShareType2主通道PayMode1飞界国际6001-h5sqBuyer,不输入DomesticPayMode默认开通国内盛付通");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(2);
			bean.setPayMode(1);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(1);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(3, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道6000-wxsqBuyer");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			//ChannelType5 公版小程序辅助
			Logger.verifyEquals(5,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(0,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6001-h5sqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道6001-h5sqBuyer");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(0,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
			
			List<Paychannel> p2 = db.stream().filter(d->d.getAppName().equals("6011-h5sqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p2.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p2.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p2.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(1,p2.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p2.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			//ChannelType5 公版小程序辅助
			Logger.verifyEquals(6,p2.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(0,p2.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(2,p2.get(0).getCompany(), "验证Company");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_ChangePayMode_059() {
		Logger.start(true,"渠道修改支付通道接口,独立版渠道商小程序MchShareType3主通道PayMode5独立支付,6000-channelid,辅助通道6001-channelid");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(3);
			bean.setPayMode(5);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(2, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6001-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(1,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(1,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	@Ignore
	//继承版MchShareType5 被干掉了
	public void Tc_ChangePayMode_060() {
		Logger.start(true,"代理修改支付通道接口,独立版渠道商小程序继承版MchShareType5主通道PayMode5,6000-channelid,辅助通道6001-channelid");
		try {
			Integer mchId_channl_master = GodmchManageCallService.CreateSellerMch();
			Integer mchId_channl=getAgentMchId(mchId_channl_master);
            setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(5);
			bean.setPayMode(5);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(2, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-"+mchId_channl_master)).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道6000-wxsqBuyer");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(1,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl_master.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6001-"+mchId_channl_master)).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(1,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl_master.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(1,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(1,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	
	//-------------------------------------------------202004 改版补充场景
	
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_ChangePayMode_101() {
		Logger.start(true,"渠道修改支付通道接口,公版渠道商小程序MchShareType1,paymode1,DomesticPayMode1开启盛付通");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(1);
			bean.setPayMode(1);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(1);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(3, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道6000-wxsqBuyer");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(0,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6001-h5sqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(1,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(0,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
			List<Paychannel> p3 = db.stream().filter(d->d.getAppName().equals("6010-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p3.size(), "验证渠道");
			Logger.verifyEquals(0,p3.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p3.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(0,p3.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p3.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(6,p3.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(0,p3.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(2,p3.get(0).getCompany(), "验证Company");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_ChangePayMode_102() {
		Logger.start(true,"渠道修改支付通道接口,公版渠道商小程序MchShareType1,paymode0关闭飞界国际,DomesticPayMode1开启盛付通");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(1);
			bean.setPayMode(0);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(1);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(1, db.size(), "验证渠道总数");
//			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
//			Logger.verifyEquals(1, p0.size(), "验证渠道6000-wxsqBuyer");
//			//0 正常  1删除
//			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
//			//是否代理商0否 1是
//			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
//			//0小程序 1h5
//			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
//			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
//			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
//			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
//			//0公版 1独立
//			Logger.verifyEquals(0,p0.get(0).getStoreType(), "验证StoreType");
//			//1hipopay 2sft
//			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
//			
//			//------------------------------------------辅助通道
//			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6001-h5sqBuyer")).collect(Collectors.toList());
//			Logger.verifyEquals(1, p1.size(), "验证渠道");
//			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
//			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
//			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
//			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
//			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
//			Logger.verifyEquals(1,p1.get(0).getChannelType(), "验证ChannelType");
//			Logger.verifyEquals(0,p1.get(0).getStoreType(), "验证StoreType");
//			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
			List<Paychannel> p3 = db.stream().filter(d->d.getAppName().equals("6010-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p3.size(), "验证渠道");
			Logger.verifyEquals(0,p3.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p3.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(0,p3.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p3.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(6,p3.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(0,p3.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(2,p3.get(0).getCompany(), "验证Company");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_ChangePayMode_103() {
		Logger.start(true,"渠道修改支付通道接口,独立版渠道商小程序MchShareType3主通道PayMode1,DomesticPayMode1开启sft");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(3);
			bean.setPayMode(1);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(1);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(3, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6001-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(1,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(1,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
			List<Paychannel> p3 = db.stream().filter(d->d.getAppName().equals("6010-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p3.size(), "验证渠道");
			Logger.verifyEquals(0,p3.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p3.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(0,p3.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p3.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(6,p3.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(1,p3.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(2,p3.get(0).getCompany(), "验证Company");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_ChangePayMode_104() {
		Logger.start(true,"渠道修改支付通道接口,独立版渠道商小程序MchShareType3主通道PayMode0,DomesticPayMode1开启sft");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(3);
			bean.setPayMode(0);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(1);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(1, db.size(), "验证渠道总数");
//			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
//			Logger.verifyEquals(1, p0.size(), "验证渠道");
//			//0 正常  1删除
//			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
//			//是否代理商0否 1是
//			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
//			//0小程序 1h5
//			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
//			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
//			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
//			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
//			//0公版 1独立
//			Logger.verifyEquals(1,p0.get(0).getStoreType(), "验证StoreType");
//			//1hipopay 2sft
//			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
//			
//			//------------------------------------------辅助通道
//			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6001-"+mchId_channl)).collect(Collectors.toList());
//			Logger.verifyEquals(1, p1.size(), "验证渠道");
//			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
//			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
//			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
//			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
//			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
//			Logger.verifyEquals(1,p1.get(0).getChannelType(), "验证ChannelType");
//			Logger.verifyEquals(1,p1.get(0).getStoreType(), "验证StoreType");
//			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
			List<Paychannel> p3 = db.stream().filter(d->d.getAppName().equals("6010-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p3.size(), "验证渠道");
			Logger.verifyEquals(0,p3.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p3.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(0,p3.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p3.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(6,p3.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(1,p3.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(2,p3.get(0).getCompany(), "验证Company");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_ChangePayMode_105() {
		Logger.start(true,"渠道修改支付通道接口,独立版渠道商小程序MchShareType3主通道PayMode5独立支付,DomesticPayMode1开启sft");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(3);
			bean.setPayMode(5);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(1);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(3, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6001-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(1,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(1,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
			List<Paychannel> p3 = db.stream().filter(d->d.getAppName().equals("6010-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p3.size(), "验证渠道");
			Logger.verifyEquals(0,p3.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p3.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(0,p3.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p3.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(6,p3.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(1,p3.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(2,p3.get(0).getCompany(), "验证Company");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_ChangePayMode_106() {
		Logger.start(true,"代理独立云版本-支付通道修改-公版-纯代理");
		try {
			createIndepMchBean createIndepMchBean=GodmchManageCallService.InitCreateIndepMchBean();
            Integer mchId_channl_master=GodmchManageCallService.CreateIndepMchCall(createIndepMchBean).getmchId();

            // 生成纯代理
    		Thread.sleep(5000);// 休眠目的是为了创建独立商户，把对应的配置 同步到用户那边，然后用户 拿到配置再创建代理
    		// 2：申请代理
    		applyAgentBean applyBean = GodmchManageCallService.InitApplyAgentBean();
    		applyBean.setCountry("CHN");
    		applyBean.setMchId(mchId_channl_master);
    		applyBean.setAppKey("appsqSeller_" + mchId_channl_master);
    		applyAgentCall applyCall = GodmchManageCallService.ApplyAgentCall(applyBean);
    		// 代理类型
    		createagentBean agentBean = GodmchManageCallService.InitCreateAgentTypeBean(applyBean.getMchId());
    		createagentCall agentCall = GodmchManageCallService.CreateAgentTypeCall(agentBean);
    		// 查询代理类型
    		Map<String, Object> map = new HashMap();
    		map.put("mchId", applyBean.getMchId());
    		List<agent_type> list = GodmchManageCallService.agentTypeWapper.selectby(map);
    		// 3:审核代理
    		approveAgentBean approveAgentBean = new approveAgentBean();
    		approveAgentBean.setMchId(applyBean.getMchId());
    		approveAgentBean.setAgentId(applyCall.getAgentId());
    		approveAgentBean.setAgentType(list.get(0).getAgentType());
    		approveAgentBean.setAgentMode(1);

    		GodmchManageCallService.ApproveAgentCall(approveAgentBean);
    		
            Integer  mchId_channl= applyCall.getAgentId();
            
            setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(1);
			bean.setPayMode(1);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(1);
			GodmchManageCallService.setShareTypeV2Call(bean);
			
			
            changepaymodeBean.setUserId(mchId_channl);
            changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();			
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			//默认开通sft
			Logger.verifyEquals(3, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-"+mchId_channl_master)).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(1,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl_master.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(0,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6001-"+mchId_channl_master)).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(1,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl_master.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(1,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(0,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
			
			List<Paychannel> p3 = db.stream().filter(d->d.getAppName().equals("6010-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p3.size(), "验证渠道");
			Logger.verifyEquals(0,p3.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(1,p3.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(0,p3.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl_master.toString(),p3.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(6,p3.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(0,p3.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(2,p3.get(0).getCompany(), "验证Company");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_ChangePayMode_107() {
		Logger.start(true,"代理独立云版本-支付通道修改-独立版-纯代理");
		try {
			createIndepMchBean createIndepMchBean=GodmchManageCallService.InitCreateIndepMchBean();
            Integer mchId_channl_master=GodmchManageCallService.CreateIndepMchCall(createIndepMchBean).getmchId();
            
         // 考虑到需要使用代理，所以返回申请代理call，代理Id：applyCall.getAgentId()
    		Thread.sleep(5000);// 休眠目的是为了创建独立商户，把对应的配置 同步到用户那边，然后用户 拿到配置再创建代理
    		// 2：申请代理
    		applyAgentBean applyBean = GodmchManageCallService.InitApplyAgentBean();
    		applyBean.setCountry("CHN");
    		applyBean.setMchId(mchId_channl_master);
    		applyBean.setAppKey("appsqSeller_" + mchId_channl_master);
    		applyAgentCall applyCall = GodmchManageCallService.ApplyAgentCall(applyBean);
    		// 代理类型
    		createagentBean agentBean = GodmchManageCallService.InitCreateAgentTypeBean(applyBean.getMchId());
    		createagentCall agentCall = GodmchManageCallService.CreateAgentTypeCall(agentBean);
    		// 查询代理类型
    		Map<String, Object> map = new HashMap();
    		map.put("mchId", applyBean.getMchId());
    		List<agent_type> list = GodmchManageCallService.agentTypeWapper.selectby(map);
    		// 3:审核代理
    		approveAgentBean approveAgentBean = new approveAgentBean();
    		approveAgentBean.setMchId(applyBean.getMchId());
    		approveAgentBean.setAgentId(applyCall.getAgentId());
    		approveAgentBean.setAgentType(list.get(0).getAgentType());
    		approveAgentBean.setAgentMode(1);

    		GodmchManageCallService.ApproveAgentCall(approveAgentBean);
    		
            Integer  mchId_channl= applyCall.getAgentId();
			
            setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(3);
			bean.setPayMode(1);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(1);
			GodmchManageCallService.setShareTypeV2Call(bean);
            
            changepaymodeBean.setUserId(mchId_channl);
            changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();			
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			//默认开通sft
			Logger.verifyEquals(3, db.size(), "验证渠道总数");
//			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
//			Logger.verifyEquals(1, p0.size(), "验证渠道");
//			//0 正常  1删除
//			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
//			//是否代理商0否 1是
//			Logger.verifyEquals(1,p0.get(0).getAgentType(), "验证AgentType");
//			//0小程序 1h5
//			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
//			Logger.verifyEquals(mchId_channl_master.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
//			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
//			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
//			//0公版 1独立
//			Logger.verifyEquals(1,p0.get(0).getStoreType(), "验证StoreType");
//			//1hipopay 2sft
//			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6001-"+mchId_channl)).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(1,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl_master.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(1,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(1,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
			
			List<Paychannel> p3 = db.stream().filter(d->d.getAppName().equals("6010-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p3.size(), "验证渠道");
			Logger.verifyEquals(0,p3.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(1,p3.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(0,p3.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl_master.toString(),p3.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(6,p3.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(1,p3.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(2,p3.get(0).getCompany(), "验证Company");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_ChangePayMode_108() {
		Logger.start(true,"代理商独立商家支付渠道为root上级的的rootSellerid-验证channelid为rootSellerid-独立商家供货商indepMchFlg=2");
		try {
			//mch_info.indepMchFlg=2
			//创建独立商户1
            createIndepMchBean createIndepMchBean=GodmchManageCallService.InitCreateIndepMchBean();
            createIndepMchCall createIndepMchCall=GodmchManageCallService.CreateIndepMchCall(createIndepMchBean);
            Integer mchId_channl_master=createIndepMchCall.getmchId();
            //申请供货商
            applySupplierBean applySupplierBean=GodmchManageCallService.initApplySupplier(mchId_channl_master);
            applySupplierCall applySupplierCall=GodmchManageCallService.applySupplierCall(applySupplierBean);
            Integer  mchId_channl=  applySupplierCall.getSupplierId();
            //同意
            GodmchManageCallService.approveSupplier(createIndepMchCall.getmchId(), mchId_channl);
           
            changepaymodeBean.setUserId(mchId_channl);
            changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();			
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(3, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-"+mchId_channl_master)).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl_master.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(1,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6001-"+mchId_channl_master)).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl_master.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(1,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(1,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
			List<Paychannel> p3 = db.stream().filter(d->d.getAppName().equals("6010-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p3.size(), "验证渠道");
			Logger.verifyEquals(0,p3.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p3.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(0,p3.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl_master.toString(),p3.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(6,p3.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(1,p3.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(2,p3.get(0).getCompany(), "验证Company");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_ChangePayMode_109() {
		Logger.start(true,"新增字段AliPayDomesticPayMode-对应渠道6012-h5sqBuyer");
		try {
			Integer mchId_channl = GodmchManageCallService.CreateSellerMch();
			setShareTypeBean bean=new setShareTypeBean();
			bean.setAliPayDomesticPayMode(1);
			bean.setAliPayMode(0);
			bean.setDualMode(0);
			bean.setMchId(mchId_channl);
			bean.setMchShareType(1);
			bean.setPayMode(1);
			bean.setMchSideBuy(1);
			bean.setDomesticPayMode(0);
			GodmchManageCallService.setShareTypeV2Call(bean);
			changepaymodeBean.setUserId(mchId_channl);
			changepaymodeCall.setData(changepaymodeBean);
			changepaymodeCall.callService();		
			Logger.verifyEquals("ok", changepaymodeCall.getReturnData(), "验证返回");
			List<Paychannel> db = PayGateWayWapper.selectPaychannel(mchId_channl);
			Logger.comment(FormatUtil.beanToGSONString(db));
			Logger.verifyEquals(3, db.size(), "验证渠道总数");
			List<Paychannel> p0 = db.stream().filter(d->d.getAppName().equals("6000-wxsqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p0.size(), "验证渠道6000-wxsqBuyer");
			//0 正常  1删除
			Logger.verifyEquals(0,p0.get(0).getDeleteStatus(), "验证DeleteStatus");
			//是否代理商0否 1是
			Logger.verifyEquals(0,p0.get(0).getAgentType(), "验证AgentType");
			//0小程序 1h5
			Logger.verifyEquals(0,p0.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p0.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(0,p0.get(0).getChannelType(), "验证ChannelType");
			//0公版 1独立
			Logger.verifyEquals(0,p0.get(0).getStoreType(), "验证StoreType");
			//1hipopay 2sft
			Logger.verifyEquals(1,p0.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p1 = db.stream().filter(d->d.getAppName().equals("6001-h5sqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p1.size(), "验证渠道");
			Logger.verifyEquals(0,p1.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p1.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p1.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p1.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(1,p1.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(0,p1.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(1,p1.get(0).getCompany(), "验证Company");
			
			//------------------------------------------辅助通道
			List<Paychannel> p2 = db.stream().filter(d->d.getAppName().equals("6012-h5sqBuyer")).collect(Collectors.toList());
			Logger.verifyEquals(1, p2.size(), "验证渠道");
			Logger.verifyEquals(0,p2.get(0).getDeleteStatus(), "验证DeleteStatus");
			Logger.verifyEquals(0,p2.get(0).getAgentType(), "验证AgentType");
			Logger.verifyEquals(1,p2.get(0).getAppType(), "验证AppType");
			Logger.verifyEquals(mchId_channl.toString(),p2.get(0).getChannelParentId(), "验证ChannelParentId");
			//通道类型：\r\n\r\n0- 店铺通道（跟着店铺类型走）\r\n\r\n1-辅助H5通道（独立小程序含继承版商户会有）\r\n\r\n2-辅助盛付通通道（开启了双店模式会有）\r\n\r\n3-辅助支付宝通道（开启了支付宝情况下会有）
			Logger.verifyEquals(7,p2.get(0).getChannelType(), "验证ChannelType");
			Logger.verifyEquals(0,p2.get(0).getStoreType(), "验证StoreType");
			Logger.verifyEquals(2,p2.get(0).getCompany(), "验证Company");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	/**
	 * 获取mchId_channl_master的一个纯代理id
	 * @param mchId_channl_master
	 * @return 纯代理id
	 * @throws Exception 
	 */
	private Integer getAgentMchId(Integer mchId_channl_master) throws Exception {
		UserCreateBean usercreateBean1=DGUserCallService.initUsercreateBean();
		Integer mchId_channl=DGUserCallService.UserCreateCall(usercreateBean1);
        //代理
		List<createmchBean> createmchList = GodmchManageCallService.InitcreatemchBeanForAgent(mchId_channl_master,mchId_channl);
		createmchList.get(0).setCountry("CHN");
		GodmchManageCallService.createmchCallForAgent(createmchList.toArray(new
                createmchBean[createmchList.size()]));
		return mchId_channl;
	}
}